import axios from 'axios';

/**
 * 直接通过请求上传，不封装请求头，否则后端会报错
 * 上传头像
 * @param formData
 * @returns {Promise<void>}
 */
export const uploadAvatarApi = async (formData) => {
    return await axios(import.meta.env.VITE_BASE_URL + '/files/upload', {
        method: 'post',
        data: formData,
    })
}